//
//  AppDelegate.m
//  DevSpoofHelper
//
//  Created by huang on 2018/11/5.
//  Copyright © 2018年 wdys. All rights reserved.
//

#import "AppDelegate.h"

@interface AppDelegate ()

@end

@implementation AppDelegate

- (void)applicationDidFinishLaunching:(NSNotification *)aNotification {
    NSMutableArray *components = [[[NSBundle mainBundle] bundlePath].pathComponents mutableCopy];
    components = [[components subarrayWithRange:NSMakeRange(0, components.count - 4)] mutableCopy];
    [components addObject:@"MacOS"];
    [components addObject:@"DevSpoof"];
    NSString *path = [NSString pathWithComponents:components];
    [[NSWorkspace sharedWorkspace] launchApplication:path];
    [NSApp terminate:nil];
}


- (void)applicationWillTerminate:(NSNotification *)aNotification {
    // Insert code here to tear down your application
}


@end
